Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add full Expr support to StochasticSwap #10506

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

jakelishman
Copy link
Member

Summary

This was mostly already there (and why I had missed problems when testing before), the missing piece was just for switch statements. This commit also adds some final tests of the pass.

Details and comments

Changelog from #10331.

This was mostly already there (and why I had missed problems when
testing before), the missing piece was just for `switch` statements.
This commit also adds some final tests of the pass.
@jakelishman jakelishman added Changelog: New Feature Include in the "Added" section of the changelog mod: transpiler Issues and PRs related to Transpiler labels Jul 26, 2023
@jakelishman jakelishman added this to the 0.25.0 milestone Jul 26, 2023
@jakelishman jakelishman requested a review from a team as a code owner July 26, 2023 17:42
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this is a straightforward fix. I assume you're saving the level 0 full path transpile() tests for a separate PR with the other optimization levels.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5671996471

  • 7 of 9 (77.78%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 85.929%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/transpiler/passes/routing/stochastic_swap.py 7 9 77.78%
Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 2 91.65%
Totals Coverage Status
Change from base Build 5667924881: 0.02%
Covered Lines: 73052
Relevant Lines: 85014

💛 - Coveralls

@jakelishman
Copy link
Member Author

Yeah, I turned it up while writing full integration tests. I need to write a similar PR for testing Sabre (a minor bug in all switch handling), and then that's everything working. I'll try and do it late this evening.

@mtreinish mtreinish added this pull request to the merge queue Jul 26, 2023
Merged via the queue into Qiskit:main with commit 7af335e Jul 26, 2023
13 checks passed
@jakelishman jakelishman added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Jul 26, 2023
mergify bot pushed a commit that referenced this pull request Jul 26, 2023
This was mostly already there (and why I had missed problems when
testing before), the missing piece was just for `switch` statements.
This commit also adds some final tests of the pass.

(cherry picked from commit 7af335e)
@jakelishman jakelishman deleted the expr/stochastic-swap branch July 26, 2023 20:22
github-merge-queue bot pushed a commit that referenced this pull request Jul 26, 2023
This was mostly already there (and why I had missed problems when
testing before), the missing piece was just for `switch` statements.
This commit also adds some final tests of the pass.

(cherry picked from commit 7af335e)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
to24toro pushed a commit to to24toro/qiskit-terra that referenced this pull request Aug 3, 2023
This was mostly already there (and why I had missed problems when
testing before), the missing piece was just for `switch` statements.
This commit also adds some final tests of the pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: New Feature Include in the "Added" section of the changelog mod: transpiler Issues and PRs related to Transpiler stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants